package com.rzico.basics.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.rzico.basics.model.ProductVo;
import com.rzico.basics.model.ShopVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Collections;
import java.util.List;

@Data
@JsonIgnoreProperties(value = {"handler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "wx_recommend")
public class Recommend {

    @Id
    @ApiModelProperty(value = "" )
    protected Long id;

    @ApiModelProperty(value = "创建日期" )
    protected java.util.Date createDate;

    @ApiModelProperty(value = "修改日期" )
    protected java.util.Date modifyDate;

    @ApiModelProperty(value = "推荐名称" )
    protected String name;

    @ApiModelProperty(value = "伟度" )
    protected Double lat;

    @ApiModelProperty(value = "经度" )
    protected Double lng;

    @ApiModelProperty(value = "所在区" )
    protected Integer areaId;

    @ApiModelProperty(value = "所在区" )
    protected String areaName;

    @ApiModelProperty(value = "排序" )
    protected Integer orders;

    @ApiModelProperty(value = "类型{0:商品,1:名店,2:酒店,3:名厨,4.餐车}" )
    protected Integer type;

    @ApiModelProperty(value = "类型ID" )
    protected Long typeId;

    @ApiModelProperty(value = "企业ID" )
    protected Long enterpriseId;

    @ApiModelProperty(value = "商品名称" )
    protected ProductVo productVo;

    @ApiModelProperty(value = "店铺实际" )
    protected ShopVo shopVo;

    @ApiModelProperty(value = "距离")
    @Transient
    protected Double distance;

    protected List<Tag> tags = Collections.emptyList();
}
